<volist name="tree" id="list">
	<dl class="cate-item">
		<dt class="cf status_dtclass_{$list.status}">
			<form action="{:U('edit')}" method="post">
				<div class="btn-toolbar opt-btn cf">
					<a title="编辑" href="{:U('edit?id='.$list['id'].'&pid='.$list['pid'])}">[编辑]</a>
					<a title="{$list.status|show_status_op}" href="{:U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']))}" class="ajax-get">[{$list.status|show_status_op}]</a>
					<a title="删除" href="{:U('remove?id='.$list['id'])}" class="confirm ajax-get">[删除]</a>
				</div>
				<div class="fold"><i></i></div>
				<div class="order"><input type="text" name="sort" class="text input-mini" value="{$list.sort}"></div>
				<div class="order">{$list['is_display']?'是':'否'}</div>
				<div class="order">{$list.id}</div>
				<div class="name">
					<span class="tab-sign"></span>
					<input type="hidden" name="id" value="{$list.id}">
					<input type="text" name="name" class="text" value="{$list.name}">
					<a class="add-sub-cate" title="添加子分类" href="{:U('add?pid='.$list['id'])}">
						<i class="icon-add"></i>
					</a>
					<span class="help-inline msg"></span>
				</div>

					<div class="order" style="width:150px;">
					<if condition='$list.is_topshow eq 0'>
					<a style="color:red" href="{:U('setfield' ,array('id'=> $list['id'] , 'field' => 'is_topshow' , 'value' => '1'))}" class="ajax-get">[置顶]</a>
					<else />
					<a style="color:blue" href="{:U('setfield' ,array('id'=> $list['id'] , 'field' => 'is_topshow' , 'value' => '0'))}" class="ajax-get">[取消置顶]</a>
					</if>
					</div>


			</form>
		</dt>
		<notempty name="list['_']">
			<dd style="display: none;">
				{:R('ItemCategory/tree', array($list['_']))}
			</dd>
		</notempty>
	</dl>
</volist>